Page({
  data: {
    condition: false,
    fei: '',
    feiban: "",
  },
  switchchange(e) {
    console.log(e)
    this.setData({
      condition:e.detail.value
    })
  },
  formsubmit(e) {
    let fei = 300
    let feiban = 150
    let bd = Number(e.detail.value.property)
    if (bd > 200000) {
      fei += (bd - 200000) * 0.005
    } else {
      fei = 300
    }

    feiban = fei / 2
    fei = fei.toFixed(2)
    feiban = feiban.toFixed(2)

    this.setData({
      fei,feiban
    })
  }
})